Requirements
Please ensure that your local device meets the following minimum requirements.
  • Flutter SDK 3.0, or higher.
  • Additional SDKs and toolchains:
    • Dart SDK 3.2, or higher.
    • For building Android app:
      • Android SDK.
      • Android Command line build tools.
    • For building iOS app
      • Xcode 12.5, or higher
      • CocoaPods 1.11, or higher

    Note
    If you've a functional Flutter installation and you're already developing Flutter apps on your device, then you probably already have SDKs/tools that are mentioned in additional section.
Extract Files
Extract the zip file that you've downloaded from CodeCanyon on your local device. In extracted contents you'll find folder named Flutter App. This folder contains source code of Flutter App that we're going to build in next steps.
Prerequisites
  1. Open command prompt in Flutter App folder.
  2. Fetch dependencies:
    flutter pub get
  3. Ensure pub is globally accessible:
    pub -v

    If above command gives you an error, then you've to add pub to your PATH environment variable. If you need help, feel free to contact us.
Change App Icon
There are multiple places where logo and branding icons are used. For flexibility reasons, all branding assets are different and can be changed according to one's requirements.
  • Change App Icon:
    1. Replace assets/icon/ios.png with your icon for iOS devices.
    2. Replace assets/icon/android.png with your icon for Android devices.
    3. Open command prompt in Flutter App folder and run:
      flutter pub run flutter_launcher_icons:main

      Above command will automatically build your updated icons.
  • Change home screen logo:
    • Replace assets/svg/logo.svg with your app logo.
  • Change splash screen logo and company banner:
    • Replace assets/png/logo.png with your app logo.
    • Replace assets/png/logo_company_on_light.png with your logo's light variant.
    • Replace assets/png/logo_company_on_dark.png with your logo's dark variant.
Change App Name
  1. Activate rename package.
    pub global activate rename
  2. Change app name:
    pub global run rename --appname "New Name"
  3. Change bundle id:
    pub global run rename --bundleId com.yoursite.appname
  4. Lastly, update APP_NAME in config.dart,
Configure Languages
Photogram is using Flutter's official i10n package to provide internationalization support. English(US) language is included as default in this package, resources for which can be found in i10n/app_en.arb file. For adding more langauges, please refer to official documentation.
Configure API Endpoint
Open config.dart from lib folder and update Installation URL.
Note that it has to match with the one you used on PHP server settings.
Build Application
  1. For getting release build please run:
    flutter build apk

  2. There are number of options available in build command. We recommend you to check out this guide from Flutter docs for more.
Deployment
If you're looking to deploy your app to Apple's App store or Google's Play Store, we recommend you to follow official deployment guides from Flutter docs.
  1. Official Android deployment guide.
  2. Official iOS deployment guide.



Need help?
If you've questions or you need help, feel free to contact us.